package Chapter10_InnerClass;

/**
 * Date: 2019/2/19
 * Time: 11:02
 * User: Driss.
 */
public class Parcel3 {
    class Contents{
        private int i = 11;
        public int value(){return i;}
    }

    class Destination{
        private String label;
        Destination(String whereTo){label = whereTo;}
        String readLabel(){return label;}
    }

    public static void main(String[] args) {
        Parcel3 parcel3 = new Parcel3();
        Contents c = parcel3.new Contents();
        Destination d = parcel3.new Destination("Tasmania");
    }
}
